#-*-coding:utf-8-*-
#from ttfToPic import Win32Font
from drawPicOn import wordToPic


#f = Win32Font("C:/Windows/Fonts/simsun.ttc", 15)
#im = f.renderText(u"宋")
#im.save("E:/workspace/python_ttf_to_pic/hope1.png")
#循环读取文本

textType = "C:/Windows/Fonts/simsun.ttc"

file = open('sample.txt','r', encoding='UTF-8') 

while 1:
  line = file.readline()
  if not line:
    break
  text = line.replace("\r","").replace("\n","") # do something
  print(text)
  w = wordToPic()
  w.createManyWords(text,textType)
  file.close()
#变量参数
#text = "翻"


#调用下面的方法

